<?php



class LogMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.LogMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('log');
		$tMap->setPhpName('Log');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('PARENT_ID', 'ParentId', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('PROJECT_ID', 'ProjectId', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('CLASS_NAME', 'ClassName', 'string', CreoleTypes::VARCHAR, false, 256);

		$tMap->addColumn('ACTION', 'Action', 'string', CreoleTypes::VARCHAR, false, 256);

		$tMap->addColumn('OBJ_ID', 'ObjId', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('OBJ_NAME', 'ObjName', 'string', CreoleTypes::VARCHAR, false, 256);

		$tMap->addColumn('MD5', 'Md5', 'string', CreoleTypes::VARCHAR, false, 32);

		$tMap->addColumn('USER_ID', 'UserId', 'int', CreoleTypes::INTEGER, false, null);

		$tMap->addColumn('CREATED_AT', 'CreatedAt', 'int', CreoleTypes::TIMESTAMP, false, null);

	} 

} 
